<?php

namespace Plugins\MysqlInfo\Http\Admin\Controller;

use App\Http\AbstractController;
use App\Middlewares\Admin\AuthenticateMiddleware;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\GetMapping;
use Hyperf\HttpServer\Annotation\Middlewares;
use Hyperf\View\Render;
use Psr\Http\Message\ResponseInterface;

/**
 * Class IndexController
 */
#[Controller(prefix: '/admin/plugins/mysql-info')]
#[Middlewares([AuthenticateMiddleware::class])]
class IndexController extends AbstractController
{

    #[GetMapping('')]
    public function index(Render $render): ResponseInterface
    {
        return $render->render('plugins.MysqlInfo.Admin.index');
    }
}